import request from '@/utils/request'

// 查询四害消杀列表
export function listExtermination(query) {
  return request({
    url: '/standingbook/extermination/list',
    method: 'get',
    params: query
  })
}

// 查询四害消杀详细
export function getExtermination(id) {
  return request({
    url: '/standingbook/extermination/' + id,
    method: 'get'
  })
}

// 新增四害消杀
export function addExtermination(data) {
  return request({
    url: '/standingbook/extermination',
    method: 'post',
    data: data
  })
}

// 修改四害消杀
export function updateExtermination(data) {
  return request({
    url: '/standingbook/extermination',
    method: 'put',
    data: data
  })
}

// 删除四害消杀
export function delExtermination(id) {
  return request({
    url: '/standingbook/extermination/' + id,
    method: 'delete'
  })
}
